package cn.bisoft.java.bean.entity;

import java.io.Serializable;



/**
 * This is an object that contains data related to the AnteAngentPayLog table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="AnteAngentPayLog"
 */

public abstract class BaseAnteAngentPayLog  implements Serializable {

	private static final long serialVersionUID = 1L;
	public static String REF = "AnteAngentPayLog";
	public static String PROP_SEQ_NO = "seqNo";
	public static String PROP_COUNTER_I_D = "counterID";
	public static String PROP_PAY_MONEY = "payMoney";
	public static String PROP_GAME_ID = "gameId";
	public static String PROP_OPERATOR = "operator";
	public static String PROP_NOTE = "note";
	public static String PROP_ISSUE_NAME = "issueName";
	public static String PROP_PAY_DATE = "payDate";
	public static String PROP_PAY_TYPE = "payType";


	// constructors
	public BaseAnteAngentPayLog () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteAngentPayLog (java.lang.Long seqNo) {
		this.setSeqNo(seqNo);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteAngentPayLog (
		java.lang.Long seqNo,
		java.lang.String counterID,
		java.lang.Double payMoney,
		java.lang.Integer payType,
		java.lang.String operator,
		java.util.Date payDate,
		java.lang.Integer gameId,
		java.lang.String issueName,
		java.lang.String note) {

		this.setSeqNo(seqNo);
		this.setCounterID(counterID);
		this.setPayMoney(payMoney);
		this.setPayType(payType);
		this.setOperator(operator);
		this.setPayDate(payDate);
		this.setGameId(gameId);
		this.setIssueName(issueName);
		this.setNote(note);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Long seqNo;

	// fields
	private java.lang.String counterID;
	private java.lang.Double payMoney;
	private java.lang.Integer payType;
	private java.lang.String operator;
	private java.util.Date payDate;
	private java.lang.Integer gameId;
	private java.lang.String issueName;
	private java.lang.String note;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="SeqNo"
     */
	public java.lang.Long getSeqNo () {
		return seqNo;
	}

	/**
	 * Set the unique identifier of this class
	 * @param seqNo the new ID
	 */
	public void setSeqNo (java.lang.Long seqNo) {
		this.seqNo = seqNo;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: CounterID
	 */
	public java.lang.String getCounterID () {
		return counterID;
	}

	/**
	 * Set the value related to the column: CounterID
	 * @param counterID the CounterID value
	 */
	public void setCounterID (java.lang.String counterID) {
		this.counterID = counterID;
	}



	/**
	 * Return the value associated with the column: PayMoney
	 */
	public java.lang.Double getPayMoney () {
		return payMoney;
	}

	/**
	 * Set the value related to the column: PayMoney
	 * @param payMoney the PayMoney value
	 */
	public void setPayMoney (java.lang.Double payMoney) {
		this.payMoney = payMoney;
	}



	/**
	 * Return the value associated with the column: payType
	 */
	public java.lang.Integer getPayType () {
		return payType;
	}

	/**
	 * Set the value related to the column: payType
	 * @param payType the payType value
	 */
	public void setPayType (java.lang.Integer payType) {
		this.payType = payType;
	}



	/**
	 * Return the value associated with the column: Operator
	 */
	public java.lang.String getOperator () {
		return operator;
	}

	/**
	 * Set the value related to the column: Operator
	 * @param operator the Operator value
	 */
	public void setOperator (java.lang.String operator) {
		this.operator = operator;
	}



	/**
	 * Return the value associated with the column: PayDate
	 */
	public java.util.Date getPayDate () {
		return payDate;
	}

	/**
	 * Set the value related to the column: PayDate
	 * @param payDate the PayDate value
	 */
	public void setPayDate (java.util.Date payDate) {
		this.payDate = payDate;
	}



	/**
	 * Return the value associated with the column: GameId
	 */
	public java.lang.Integer getGameId () {
		return gameId;
	}

	/**
	 * Set the value related to the column: GameId
	 * @param gameId the GameId value
	 */
	public void setGameId (java.lang.Integer gameId) {
		this.gameId = gameId;
	}



	/**
	 * Return the value associated with the column: IssueName
	 */
	public java.lang.String getIssueName () {
		return issueName;
	}

	/**
	 * Set the value related to the column: IssueName
	 * @param issueName the IssueName value
	 */
	public void setIssueName (java.lang.String issueName) {
		this.issueName = issueName;
	}



	/**
	 * Return the value associated with the column: Note
	 */
	public java.lang.String getNote () {
		return note;
	}

	/**
	 * Set the value related to the column: Note
	 * @param note the Note value
	 */
	public void setNote (java.lang.String note) {
		this.note = note;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof AnteAngentPayLog)) return false;
		else {
			AnteAngentPayLog anteAngentPayLog = (AnteAngentPayLog) obj;
			if (null == this.getSeqNo() || null == anteAngentPayLog.getSeqNo()) return false;
			else return (this.getSeqNo().equals(anteAngentPayLog.getSeqNo()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getSeqNo()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getSeqNo().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}